<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<meta name="viewport" content="width=device-width, initial-scale=1.0">
	<title>Document</title>
	<style>
		#box1 .p1 {
			background-color: #CCC;
		}

		#box2 p {
			background-color: #CFC;
		}
	</style>
</head>
<body>
	<div id="box1">
		<p class="p1">段落一</p>
		<p class="p2">段落二</p>
	</div>
	<div id="box2">
		<p class="p1">段落三</p>
		<p>段落四</p>
	</div>
	<p class="p1">段落五</p>
	<p>段落六</p>
</body>
</html>